package cn.edu.cdu.group4nb.service.impl;

import cn.edu.cdu.group4nb.mapper.MyInstitutionMapper;
import cn.edu.cdu.group4nb.mapper.MyPositionMapper;
import cn.edu.cdu.group4nb.po.Institution;
import cn.edu.cdu.group4nb.service.InstitutionService;
import cn.edu.cdu.group4nb.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class InstitutionServiceImpl implements InstitutionService {
    @Autowired
    private MyInstitutionMapper myInstitutionMapper;


    @Override
    public List<Map<String, Object>> selectInstitution() {
        return myInstitutionMapper.selectInstitution();
    }

    @Override
    public Boolean insertInstitution(Institution institution) {
        return myInstitutionMapper.insertInstitution(institution);
    }

    @Override
    public Boolean delInstitution(int[] institution_id) {
        return myInstitutionMapper.delInstitution(institution_id);
    }

    @Override
    public Boolean updInstitution(Institution institution) {
        return myInstitutionMapper.updInstitution(institution);
    }
}
